package geneticprogramming;

import java.util.ArrayList;
import java.util.Random;

/**
 * A class that represents the terminal set.
 * 
 * @author Trevor Greene
 * @version 1.0
 */
public final class TerminalSet extends ArrayList<String> {
        
		//private static Logger logger = Logger.getLogger(TerminalSet.class);

        /**
         * 
         */
       // private static final long serialVersionUID = 1L;

        /**
         * A method for retrieving a random operand for the terminal set.
         * 
         * @return - String
         */
	
	
  
        public String randomOperand() {
                final Random randomGenerator = new Random();
                final int randomOperand = randomGenerator.nextInt(this.size());
                return this.get(randomOperand);
        }

}
